package com.xxq.gulimall.product.feign;

import com.xxq.common.utils.R;
import com.xxq.gulimall.product.feign.entity.coupon.MemberPriceEntity;
import com.xxq.gulimall.product.feign.entity.coupon.SkuFullReductionEntity;
import com.xxq.gulimall.product.feign.entity.coupon.SkuLadderEntity;
import com.xxq.gulimall.product.feign.entity.coupon.SpuBoundsEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    @RequestMapping("/coupon/memberprice/save/list")
    R memberpriceInfo(@RequestBody List<MemberPriceEntity> memberPriceEntities);

    @RequestMapping("/coupon/skufullreduction/save")
    R skufullreductionInfo(@RequestBody SkuFullReductionEntity skuFullReduction);

    @RequestMapping("/coupon/skuladder/save")
    R skuladderInfo(@RequestBody SkuLadderEntity skuLadder);

    @RequestMapping("/coupon/spubounds/save")
    R spuboundsInfo(@RequestBody SpuBoundsEntity spuBounds);
}
